package com.dmw.controller;

import com.dmw.dto.Dto;
import com.dmw.service.ConsumerBasisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "base/api")
public class ConsumerBasisController {

    @Autowired
    private ConsumerBasisService baseConsumerService;
    /**
     * 商品列表页API 4-1 查询市区API接口
     * @return
     */
    @PostMapping("/p/area/queryCityList")
    public Dto queryCityList(){
        System.out.println(">>>商品搜索页查询市区信息");
        return baseConsumerService.queryCityList();
    }
}
